package com.lottery.material.service.portal.competition;

import com.lottery.material.pojo.article.CompetitionInfo;
import com.lottery.material.pojo.page.PageData;
import com.lottery.material.vo.portal.competition.CompetitionArticleVo;

import java.util.List;
import java.util.Map;

/**
 * @Author:houjie
 * @Description: 赛事接口
 * @Date:Create in 2019/4/10 14:22
 */
public interface CompetitionInfoService{

    /**
     * @Author: houjie
     * @Description: 根据赛事类型及赛事状态获取赛事列表
     * @Date: 2019/4/10 14:37
     */
    List<CompetitionInfo> findAllByCompetitionTypeAndStatePage(Map<String,Object> paramMap);

    /**
    * @Author: houjie
    * @Description: 根据赛事编号查询比赛
    * @Date: 2019/4/10 16:03
    */
    CompetitionInfo findByCompetitionTypeAndOpenId(PageData pd);

    List<CompetitionArticleVo> findCompetitionArticleVoByArticleId(Integer articleId);

    /**
     * description: 根据赛事id查询
     * author sunny
     * createDate 2019-04-18 下午 8:39
     * @param CompetitionId
     * @return
     */
    CompetitionInfo findByCompetitionId(Integer CompetitionId);

}
